package org.jeecg.modules.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.system.entity.SysDepartPosition;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.system.entity.SysPosition;

import java.util.List;

/**
 * @Description: 部门-职位
 * @Author: jeecg-boot
 * @Date:   2019-09-20
 * @Version: V1.0
 */
public interface ISysDepartPositionService extends IService<SysDepartPosition> {

    List<SysDepartPosition> findPage(IPage<SysDepartPosition> page, SysDepartPosition sysDepartPosition);

    List<SysDepartPosition> findPositionListByDepartId(String departId);

    List<SysDepartPosition> selectPositionList(List<String> departPositionList);

    SysDepartPosition selectById(String receiveAttr);

    List<String> selectBydepartId(String departId);

    void addBatch(SysDepartPosition sysDepartPosition);

    String selectPositionName(List<String> positionIdList);



    List<SysDepartPosition> findServerPositionListByDepartId(String tenantId, String departId);

    List<SysPosition> findTenantPositionList(String tenantId);

    List<String> getTenantDepartPosition(String tenantId, String departId);

    void saveTenantPositionBatch(SysDepartPosition sysDepartPosition);

    List<SysDepartPosition> findTenantPage(Page<SysDepartPosition> page, SysDepartPosition sysDepartPosition);

    Integer queryExPosition(String positionId, String departId);

    boolean updateServerById(SysDepartPosition sysDepartPosition);
}
